package com.saturn.titan.core.service;

import java.util.Date;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.saturn.titan.core.comm.BillType;

/**
 * 单据编码生成服务类
 * @author Administrator
 *
 */
@Component
@Transactional(readOnly = true)
public class BillNoService {

	public String getNextBillNo(BillType type){
		return type.name()+new Date().getTime();
	}
}
